import { user_register } from '../../api/login/login';
import { shop_list } from '../../utils/order/api'
// 注册
export function create_user_register(payload) {
    return function (dispatch) {
        user_register(payload).then((res) => {
            dispatch(register(payload));
        })
    }
}
export function register(payload) {
    return { type: 'REGISTER', payload };
}

// 店铺信息

export function create_shop_list(payload) {
    return function (dispatch) {
        shop_list(payload).then((res) => {
            dispatch(get_shop(payload))
        })
    }
}


export function get_shop(payload) {
    return { type: 'arr', payload }
}
